<template>
  <div>
	
	<router-view></router-view>
	<Tabbar :items="items" 
		:defaultSelectIndex="0"
		v-show="this.$route.meta.isShowTab">
	</Tabbar>
	
  </div>
</template>

<script>
	import Tabbar from './components/Tabbar.vue'
	export default{
		data(){
			return{
				items:[
					{
						title:'首页',
						icon:require('./assets/home.png'),
						icon_active:require('./assets/home2.png'),
						path:'/'
					},
					{
						title:'分类',
						icon:require('./assets/sort.png'),
						icon_active:require('./assets/sort2.png'),
						path:'/Classify'
					},
					{
						title:'购物车',
						icon:require('./assets/cart.png'),
						icon_active:require('./assets/cart2.png'),
						path:'/Carts'
					},
					{
						title:'个人',
						icon:require('./assets/user.png'),
						icon_active:require('./assets/user2.png'),
						path:'/User'
					}
				]
			}
		},
		components:{
			Tabbar
		}
	}
</script>

<style>

</style>
